<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:a="http://richfaces.org/a4j"
      xmlns:r="http://richfaces.org/rich"
      xmlns:m="http://www.caradvert.com/main">

    <ui:composition template="/content/templates/mainTemplate.xhtml">
        <ui:param name="selectedMenu" value="sell"/>
        <ui:param name="advertType" value="#{viewAdvertDetailsBean.advert.type.name()}"/>
        <ui:param name="productType" value="#{viewAdvertDetailsBean.advert.productType.name()}"/>
        <ui:param name="vehicleType" value="#{viewAdvertDetailsBean.advert.vehicle.typeCode}"/>
        <ui:param name="vehicleCategory" value="#{viewAdvertDetailsBean.advert.vehicle.categoryCode}"/>

        <ui:define name="title">#{labels['DETAILS']}</ui:define>
        <ui:define name="headContent">
            <script type="text/javascript" src="/resources/lightbox/lightbox.js"></script>
            <link rel="stylesheet" href="/resources/lightbox/lightbox.css" type="text/css"/>
        </ui:define>

        <ui:define name="body">
            <ui:decorate template="/content/templates/contentDecorator.xhtml">

                <ui:include src="/content/components/sellAdvertDetailsComponent.xhtml">
                    <ui:param name="advert" value="#{viewAdvertDetailsBean.advert}"/>
                    <ui:param name="backUrl" value="#{userActivity.previousUrl(1)}"/>
                </ui:include>

            </ui:decorate>
        </ui:define>
    </ui:composition>
</html>